package org.order.controller;


import org.order.bean.OrderBean;
import org.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {

    @Autowired
    OrderService orderService;

    @RequestMapping("/insertOrder")
    public String insertOrder(String sjid) throws Exception {

            OrderBean orderBean=new OrderBean();
            orderBean.setOrderName("orderServie8082");
            orderService.insertOrder(orderBean,sjid);
            return "成功";

    }
}
